﻿using System.Collections.Generic;
using HistogramControlTest.Controls;

namespace HistogramControlTest.Interfaces
{
    public interface IHistogramGroup
    {
        #region 属性
        /// <summary>
        /// 获取柱状图个数
        /// </summary>
        int Count { get; }

        /// <summary>
        /// 获取柱状图集合
        /// </summary>
        List<HistogramControl> Items { get; }
        #endregion

        #region 方法
        /// <summary>
        /// 添加柱状图控件
        /// </summary>
        /// <param name="pHistogramCtrl">控件对象</param>
        void AddItem(HistogramControl pHistogramCtrl);

        /// <summary>
        /// 移除柱状图控件
        /// </summary>
        /// <param name="pHistogramCtrl">控件对象</param>
        void RemoveItem(HistogramControl pHistogramCtrl);

        /// <summary>
        /// 移除柱状图控件
        /// </summary>
        /// <param name="pIndex">控件索引</param>
        void RemoveItem(int pIndex);

        /// <summary>
        /// 清空柱状图控件
        /// </summary>
        void ClearItems();
        #endregion
    }
}
